package com.ag.wzp.action;

import java.util.List;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.junit.Ignore;
import org.junit.Test;

import com.ag.bean.TbDisposalAdvice;
import com.ag.bean.TbMackupAnnex;
import com.ag.common.BaseTest;
import com.ag.wzp.service.impl.EventBaseService;
import com.ag.wzp.service.impl.MackupServiceImpl;

public class EventBase extends BaseTest {
	private static final Logger logger = Logger.getLogger(EventBase.class);
	@Resource(name="eventBaseService")
	private EventBaseService eventBaseService;
	@Resource(name = "mackupServiceImpl")
	private MackupServiceImpl mackupServiceImpl;
	@Test
	@Ignore
	public void getDAByEId(){
		logger.info("do get DAByEId");
		String EId ="1010011001";
		List<TbDisposalAdvice> das = this.eventBaseService.findAllDAByEId(EId);
		logger.info(das.size());
	}
	@Test
	public void findAnnexByEId(){
		String eid = "1010112030";
		List<TbMackupAnnex> annexs = this.mackupServiceImpl.findAnnexByEId(eid);
		logger.info(annexs.size());
	}
}
